<?php
	require_once('./template/header.tpl.php');
	include_once('./src/connect.php');
	include_once('./src/config.php');
	session_start();
	$username = $_SESSION['username'];
	
	$m_id = $_GET['m_id'];

	$query = "DELETE FROM ark_mytable WHERE m_id='".$m_id."'";
	$result = mysql_query($query, $link);

	/*if(!$result){
		print_r(mysql_error());
	}*/
	
	if (mysql_affected_rows() == 1) {
		header("Location: student_table.php");
	}
	else {
		$msg == "删除失败";
		echo "<script>alert($msg);history.go(-1);</script>";	
	}
?>